<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body,table,tr,th,td{
            font-family: "Microsoft YaHei UI";
            font-size: 12px;
        }
    </style>
</head>
<body>
<!--条件判断-->
<#assign sucFlag = success!?string('1','0') />
<#if sucFlag?? && sucFlag='1'>
    ${success} <br/>
    ${msg} <br/>
    <ul>
        <!--map遍历-->
        <li>map集合</li>
        <#list map!?keys as key>
            <li>${key}:${map[key]}</li>
        </#list>
    </ul>
    <table>
        <tr>
            <th>序号</th>
            <th>id</th>
            <th>用户名</th>
            <th>昵称</th>
            <th>性别</th>
            <th>手机</th>
            <th>地址</th>
            <th>头像</th>
            <th>信息</th>
            <th>创建时间</th>
            <th>最后更新时间</th>
        </tr>
        <!--列表遍历-->
        <#list userInfoList as item>
            <tr>
                <td>${(item_index)!}</td>
                <td>${(item.id)!}</td>
                <td>${(item.userName)!}</td>
                <td>${(item.nickName)!}</td>
                <td>${(item.sex)!}</td>
                <td>${(item.cellPhone)!}</td>
                <td>${(item.address)!}</td>
                <td>${(item.headPhoto)!}</td>
                <td>${(item.infoDesc)!}</td>
                <td>${(item.createTime)!?string('yyyy-MM-dd HH:mm:ss')}</td>
                <td>${(item.updateTime)!?string('yyyy-MM-dd HH:mm:ss')}</td>
            </tr>
        </#list>
    </table>

</#if>

${total} ${userInfoList[0].userName} <br />
<#assign list=[1,3,5,6,4,2,9,7,8] />
<!--排序，倒序-->
<#list list?sort?reverse as item>
    ${item} <br/>
</#list>
<!--按序号取值-->
${list[4]}

</body>
</html>